/**
 * 
 */
package poc.android.util;

import java.util.HashMap;
import java.util.Map;

import android.app.Application;

/**
 * @author Jason
 *
 */
public class POCApplication extends Application {
	
	public static final String APP_REVIEW="APP_REVIEW";
	public static final String APP_JSON="APP_JSON";
	public static final String APP_NO_MORE_EXP="APP_NO_MORE_EXP";
	
	Map<String, Map<String, Object>> appProperties=new HashMap<String, Map<String, Object>>();
	
	/**
	 * ctor. Setup the appProperties to be used by all possible POC apps/activities
	 */
	public POCApplication() {
		this.appProperties.put(APP_REVIEW, new HashMap<String, Object>());
		this.appProperties.put(APP_JSON, new HashMap<String, Object>());
		this.appProperties.put(APP_NO_MORE_EXP, new HashMap<String, Object>());
	}
	
	/**
	 * 
	 * @param pApp
	 * @return
	 */
	public Map<String, Object> getApplicationProperty(final String pApp) {
		return this.appProperties.get(pApp);
	}
}
